<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="Shortcut Icon" href="/static/img/ico/favicon.ico" type="image/x-icon"/>
    <link rel="pingback" href="https://www.waitsun.com/xmlrpc.php"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimal-ui">
    <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE;chrome=1">
    <title>thisding 资源共享网</title>
    <link rel='stylesheet' id='carousel-css'
          href="../../static/web/wp-content/themes/WU/includes/css/owl.carousel.min.css-ver=WU.css"
          type='text/css' media='all'/>
    <link rel='stylesheet' id='animate-css'
          href="../../static/web/wp-content/themes/WU/includes/css/animate.min.css-ver=WU.css"
          type='text/css' media='all'/>
    <link rel='stylesheet' id='bootstrap-css'
          href="../../static/web/wp-content/themes/WU/includes/css/bootstrap.min.css-ver=WU.css"
          type='text/css' media='all'/>
    <link rel='stylesheet' id='fontello-css'
          href="../../static/web/wp-content/themes/WU/includes/font-awesome/css/fontello.css-ver=WU.css" type='text/css'
          media='all'/>
    <link rel='stylesheet' id='reset-css' href="../../static/web/wp-content/themes/WU/includes/css/reset.css-ver=WU.css"
          type='text/css'
          media='all'/>
    <link rel='stylesheet' id='style-css' href="../../static/web/wp-content/themes/WU/style.css-ver=WU.css"
          type='text/css'
          media='all'/>
    <link rel='stylesheet' id='devework-shortcodes-css'
          href="../../static/web/wp-content/plugins/S-Shortcodes/includes/shortcodes.css-ver=2.4.0.css" type='text/css'
          media='all'/>
    <link rel='stylesheet' id='devework-shortcodes-fontello-css'
          href="../../static/web/wp-content/plugins/S-Shortcodes/includes/css/fontello.css-ver=2.4.0.css"
          type='text/css' media='all'/>
    <script type='text/javascript' src="../../static/web/wp-includes/js/jquery/jquery.js"></script>
    <script type='text/javascript' src="../../static/web/wp-includes/js/jquery/jquery-migrate.min.js"></script>
    <script src="../../static/backstage/lib/layui/layui.js" charset="utf-8"></script>
    <meta name="keywords" content="Mac软件下载,Mac游戏下载,苹果电脑软件下载,Mac软件网站"/>
    <meta name="description" content="致力于分享优秀的Mac应用软件，介绍Mac的使用技巧，最有价值的Mac软件免费分享，提供最新Mac破解软件免费下载。"/>
    <style>
        #top-slide .owl-item .slider-content .post-categories a,
        #top-slide .owl-item .slider-content .slider-titleh2:after,
        #top-slide .owl-item .slider-content .read-more a:hover,
        .posts-default-title h2:after,
        #ajax-load-posts a,
        #ajax-load-posts span,
        #ajax-load-posts button,
        .post-title .title:after,
        #commentform .form-submit input[type='submit'],
        .tag-clouds .tagname:hover,
        .cat ul li .title span,
        #top-slide-three .slider-content .slider-content-box .slider-content-item .post-categories a {
            background-color: #ca0c16;
        }

        a:hover,
        .authors_profile .author_name a {
            color: #ca0c16;
        }

        #ajax-load-posts a:hover,
        #ajax-load-posts button:hover {
            background-color: #273746
        }

        #header .search-box form button:hover,
        #header .primary-menu ul > li > a:hover,
        #header .primary-menu ul > li:hover > a,
        #header .primary-menu ul > li.current-menu-ancestor > a,
        #header .primary-menu ul > li.current-menu-item > a,
        #header .primary-menu ul > li .sub-menu li.current-menu-item > a,
        #header .primary-menu ul > li .sub-menu li a:hover,
        #menu-mobile a:hover {
            color: #ca0c16;
        }

        @media screen and (max-width: 767px) {
            #header .search-box form button {
                background-color: #ca0c16;
            }
        }

        .comment-form-smilies .smilies-box a:hover {
            border-color: #ca0c16
        }

        .right {
            float: left;
            margin-left: 20px;
            margin-top: 30px;
            width: calc(100% - 220px);
        }

        h3 {
            margin: 10px 0;
        }

        .box {
            height: 250px;
            background: rgba(255, 255, 255, 1);
            border-radius: 20px;
        }

        .title {
            font-size: 18px;
            font-family: MicrosoftYaHei;
            font-weight: 400;
            color: rgba(96, 96, 96, 1);
            padding-left: 24px;
            line-height: 60px;
            border-bottom: 2px solid rgba(241, 243, 253, 1);
        }

        ul {
            width: 100%;
        }

        a:hover {
            text-decoration: none;
            color: #333;
        }

        .box ul li {
            float: left;
            width: 25%;
            text-align: center;
            height: 140px;
            padding-top: 48px;
        }

        ul li img {
            width: 60px;
        }

        .bt {
            line-height: 80px;
            font-size: 14px;
            color: #888888;
            padding-left: 20px;
        }

        .kt {
            width: 90px;
            float: left;
            padding-left: 20px;
            color: #888888;
            margin-top: 20px;
            /* margin-right: 20px; */
        }

        .lists {
            width: 200px;
            height: 62px;
            background: rgba(255, 255, 255, 1);
            border: 1px solid rgba(237, 193, 86, 1);
            border-radius: 8px;
            margin-bottom: 4px;
        }

        .word {
            width: 62px;
            height: 62px;
            background: rgba(237, 193, 86, 1);
            float: left;
            text-align: center;
            line-height: 62px;
            font-size: 16px;
            font-family: MicrosoftYaHei;
            font-weight: 400;
            color: rgba(255, 255, 255, 1);
            border-top-left-radius: 8px;
            border-bottom-left-radius: 8px;
        }

        .dword {
            line-height: 31px;
        }

        .sz {
            width: 132px;
            display: inline-block;
            color: #888888;
            line-height: 60px;
            /* float: left; */
        }

        .money {
            color: #F5622E;
        }

        .number {
            font-size: 18px;
        }

        .lists {
            float: left;
            margin-right: 20px;
        }

        .clear {
            clear: both;
            height: 20px;
        }

        .info {
            font-size: 12px;
            color: #888888;
            line-height: 60px;
            padding-left: 90px;
        }

        .pay {
            width: 178px;
            height: 62px;
            background: rgba(255, 255, 255, 1);
            border-radius: 8px;
            font-size: 14px;
            color: #888888;
            float: left;
            box-shadow: 0px 0px 5px #ccc;
            text-align: center;
            line-height: 62px;
            margin-right: 20px;
            cursor: pointer;
        }

        .pay img {
            width: 20px;
        }

        .ercode {
            width: 200px;
            text-align: center;
            margin-left: 200px;
        }

        .ercode img {
            width: 136px;
        }

        .dian{
            border-color: red;
            border-width: initial;
            height: 66px;
            margin-bottom: 0px;
        }
    </style>


</head>

<body class="home blog off-canvas-nav-left">

<div th:replace="web/common/head :: header(${session.navBarList})"></div>

<div id="page-content">
    <div class="container">
        <div th:replace="web/common/mine_left :: mine_left"></div>

        <div class="right">
            <div class="box">
                <div class="title">
                    VIP特权
                </div>
                <ul>
                    <li>
                        <img src="./image/download.png" alt="">
                        <p>下载特权</p>
                    </li>
                </ul>
            </div>
            <div class="box" style="margin-top:20px;height:766px;">
                <div class="title">
                    极速开通VIP
                </div>
                <div class="bt" th:if="${session.user!=null}" th:text="'当前账号： '+${session.user.userName}">
                    当前账号： 我的昵称
                </div>
                <div class="time">
                    <div class="kt">开通时长：</div>
                    <div class="list">
                        <div class="lists" onclick="dian(this)">
                            <div class="word">
                                年费
                            </div>
                            <div class="sz"><span class="money" style="padding-left:10px;">￥<span
                                    class="number">1</span></span><span style="padding-left: 15px;">16.5元/月</span>
                            </div>
                        </div>
                        <div class="lists" onclick="dian(this)">
                            <div class="word">
                                季费
                            </div>
                            <div class="sz"><span class="money" style="padding-left:10px;">￥<span
                                    class="number">2</span></span><span style="padding-left: 15px;">16.5元/月</span>
                            </div>
                        </div>
                        <div class="lists" onclick="dian(this)">
                            <div class="word">
                                一个月
                            </div>
                            <div class="sz"><span class="money" style="padding-left:10px;">￥<span
                                    class="number">3</span></span><span style="padding-left: 15px;">16.5元/月</span>
                            </div>
                        </div>
                        <div class="clear"></div>

                        <div class="kt"></div>
                        <div class="lists" onclick="dian(this)">
                            <div class="word dword">
                                <div>连续</div>
                                <div>包年</div>

                            </div>
                            <div class="sz">
                                <span class="money" style="padding-left:10px;">
                                    ￥<span class="number">1</span>
                                </span>
                                <span style="padding-left: 15px;">16.5元/月</span>
                            </div>
                        </div>
                        <div class="lists" onclick="dian(this)">
                            <div class="word dword">
                                <div>连续</div>
                                <div>包季</div>
                            </div>
                            <div class="sz"><span class="money" style="padding-left:10px;">￥<span
                                    class="number">1</span></span><span style="padding-left: 15px;">16.5元/月</span>
                            </div>
                        </div>
                        <div class="lists" onclick="dian(this)">
                            <div class="word dword	">
                                <div>连续</div>
                                <div>包月</div>
                            </div>
                            <div class="sz"><span class="money" style="padding-left:10px;">￥<span
                                    class="number">0.5</span></span><span style="padding-left: 15px;">16.5元/月</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="info">
                    每年/季/月自动续费，可随时关闭。
                </div>
                <div class="kt">支付方式：</div>
                <div class="pay" onclick="youzanpay()">
                    <img class="change" src="./image/change.png" alt="">
                    <img src="./image/zfb.png" alt="">
                    <span>有赞支付</span>
                </div>
                <!--<div class="pay">
                    <img class="change" src="./image/unchange.png" alt="">
                    <img src="./image/wechat.png" alt="">
                    <span>微信支付</span>
                </div>-->
                <div class="clear">

                </div>
                <div class="order_money">
                    订单金额： <span class="money number">0</span>元
                </div>
                <div class="ercode">
                    <!--<p>扫码支付</p>
                    <img src="./image/ercode.png" alt="">-->
                </div>
            </div>
        </div>
    </div>
</div>

<div th:replace="web/common/foot::footer"></div>



<script>
/*
    $(function () {
        layui.use('upload', function(){
            var upload = layui.upload;

            //执行实例
            var uploadInst = upload.render({
                elem: '#head' //绑定元素
                ,url: '/pay/uploadImage' //上传接口
                ,done: function(res){
                    //上传完毕回调
                    alert(res);
                }
                ,error: function(){
                    //请求异常回调
                }
            });
        });
    });*/
    
    // 提交支付订单
    function youzanpay() {
        $.ajax({
            type: "POST",
            url: "/pay/youzan",
            data: {"money":money,"payComment":"test"},
            /*headers: {
                'X-CSRF-TOKEN': document.head.querySelector("[name=csrf_token]").content
            },*/
            dataType: 'json',
            success: function (data) {
                console.log(data);
                if(data.msg!=null){
                    layer.alert(data.msg);
                }
               /*
                str = "<p>微信/支付宝扫码支付</p><br><img src='" + data.payload.qrImg + "'>";
                $(".ercode").html(str)
                checkOrder();*/
                /*
                if (data.success) {
                    return options.success && options.success(data.payload);
                } else {
                    return options.failure && options.failure(data.msg);
                }*/
                layui.use('layer', function(){
                    var layer = layui.layer;
                    str = "微信/支付宝扫码支付<br><img src='" + data.data.qrImg + "'>";
                    layer.confirm(str, {
                        btn: ['已打赏', '后悔了'] //按钮
                    }, function (index) {
                        window.location.reload();
                        layer.close(index);
                    });

                });
            },
            error: function (data) {
                alert('服务器错误');
                return false;
            }
        })
    }
    // 查询订单支付状态
    var ck_timer;

    function checkOrder(options) {
        ck_timer = setInterval(function () {
            _check(options)
        }, options.interval);
    }

    function _check(options) {
        $.getJSON('/check_order?tradeNo=' + options.tradeNo, function (data) {
            console.log(data);
            // 支付成功
            if (data.code === 200) {
                options.success && options.success();
            } else if (data.code === 300) {
                // 等待超时
                options.timeout && options.timeout(data.msg);
            } else if (data.code === -1000) {
                clearInterval(ck_timer);
            } else {
                options.error && options.error(data.msg);
            }
        });
    }

    $(".lists").on("click",function (o) {
        // $(".lists").css("background","white")
        $(this).css("background","red)")
    })
    var money=0;
    function  dian(o) {
        money=$(o).children(".sz").children(".money").children("span").text();
        $(".order_money").children("span").text(money);
        $(".lists").removeClass("dian");
        $(o).addClass("dian");
    }
    
</script>

<!--ADD_CODE_FOOTER_END-->
<script type='text/javascript'>
    /* <![CDATA[ */
    var suxingme_url = {
        "url_ajax": "https:\/\/www.waitsun.com\/wp-admin\/admin-ajax.php",
        "url_theme": "https:\/\/www.waitsun.com\/wp-content\/themes\/WU",
        "slidestyle": "index_slide_sytle_3",
        "wow": "1",
        "sideroll": "1",
        "duang": ""
    };
    /* ]]> */
</script>
<script type='text/javascript' src="../../static/web/wp-content/themes/WU/js/bootstrap.min.js"></script>
<script type='text/javascript' src="../../static/web/wp-content/themes/WU/js/plugins.min.js"></script>
<script type='text/javascript' src="../../static/web/wp-content/themes/WU/js/suxingme.js"></script>
<script type='text/javascript' src="../../static/web/wp-content/themes/WU/js/owl.carousel.min.js"></script>
<script type='text/javascript' src="../../static/web/wp-content/themes/WU/js/wow.min.js"></script>
</body>

</html>
<!-- Dynamic page generated in 0.588 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2019-02-12 11:49:18 -->

<!-- Compression = gzip -->
<!-- super cache -->